﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="List2.aspx.cs" Inherits="Cms.Admin.Menu.List2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:HiddenField ID="hidOrders" runat="server" />
    <asp:HiddenField ID="hidHideTrIDs" runat="server" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <input id="hiddenClientID" type="hidden" value="<%=hidHideTrIDs.ClientID %>" />
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
        &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b>删除</span> </a></li>           
            <li><a id="lnkSaveOrders" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/SORT.gif);">
                &nbsp;</b>排序</span> </a></li>
            <li>
                <asp:Button ID="btnDelete" runat="server" Text="删除" CausesValidation="False" CssClass="hide"
                    OnClick="btnDelete_Click" />               
                <asp:Button ID="btnSaveOrders" runat="server" Text="排序" OnClick="btnSaveOrders_Click"
                    CssClass="hide" />
                <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" Text="Button"
                    CssClass="refresh" /></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="Label4" runat="server" Text="警告：删除一个栏目会导致栏目下的内容丢失！" ForeColor="red"
                Font-Bold="true"></asp:Label>
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="lvList">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    栏目名称
                </th>
                <th>
                    栏目编号
                </th>                
                <th>
                    排序
                </th>
            </tr>
            <asp:ListView ID="lv" runat="server" OnItemDataBound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="itemPlaceholder" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkName" runat="server" NavigateUrl="javascript:go();" Text='<%# Eval("Name") %>'></asp:HyperLink>
                        </td>
                        <td>
                            <%#Eval("Code") %>
                        </td>                        
                        <td>
                            <asp:TextBox ID="txtOrders" runat="server" Text='<%# Eval("Orders") %>' CssClass="out"></asp:TextBox>
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="5" class="empty">
                            没有栏目
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
</asp:Content>
